import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
//导入全局css样式
import './assets/reset.css'
import './assets/global.css'

//引入axios
import axios from "axios";
//绑定一个基础地址
axios.defaults.baseURL = "http://localhost:8088/" ;
//绑定到Vue上,这样在任何组件中都可以使用$axios对象
Vue.prototype.$axios = axios;

//引入elementUI组件库
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
